package edu.mit.compilers.assembly.x64.codes;

public class X64EnterCode extends X64Code {
    private long stackFrameSize;

    public X64EnterCode(long stackFrameSize) {
        this.stackFrameSize = stackFrameSize;
    }

    public void setStackFrameSize(long stackFrameSize) {
        this.stackFrameSize = stackFrameSize;
    }

    @Override
    protected String getStringFroShow(String prefix, boolean debug) {
        // example: "enter $88, $0"
        return prefix + "enter" + TAB + "$" + stackFrameSize + "," + TAB + "$0\n";
    }
}
